package store.aixx.jwt.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yukai
 * @since 2021年12月10日 16:14
 */
@RequestMapping("/hello")
@RestController
public class HelloController {

    @GetMapping("/sayHello")
    public String sayHello(){
        return "Hello jwt demo";
    }

    @GetMapping("/exception")
    public String exception(){
        int i = 1/ 0;
        return "no exception";
    }

}
